import http from "@/api";
interface result {
  code: string;
  data: Object[] | string;
  message: string;
}

interface result2 {
  code: string;
  data: any;
  message: string;
}
/**
 * @name 查询大量用户信息
 */
export const getUserList = data => {
  return http.post<result>(`/ums/appusr/users`, data, { loading: false });
};
/**
 * @name 查询大量岗位信息
 */
export const getJobs = data => {
  return http.post<result2>(`/main/appjob/query`, data, { loading: false });
};
/**
 * @name 查询大量零工岗位信息
 */
export const getFlexJobs = data => {
  return http.post<result2>(`/flexjob/jobapi/jobs`, data, { loading: false });
};
/**
 * @name 查询大量面试邀请信息
 */
export const getInterviewinfos = data => {
  return http.post<result2>(`/main/cpyjob/jobinterviewinfos`, data, { loading: false });
};
/**
 * @name 已读状态记录列表
 */
export const statusList = data => {
  return http.post<result>("/comm/comhximapi/msgstatuslist", data, { loading: false });
};
/**
 * @name已读状态记录修改
 */
export const setStatus = data => {
  return http.post<result>("/comm/comhximapi/msgstatussave", data, { loading: false });
};
